"""
@File    : calc.py
@Author  : WorldWind(1772830365@qq.com)
@Time    : 2025/7/14
@Address : ChangSha - BoWeiFeng
@Date    : 2025/7/14 上午10:26
"""


class Calc:
    def __init__(self):
        print('This is __init__ method. Calc class startup')

    # 加
    def add(self, a, b):
        return a + b

    # 减
    def sub(self, a, b):
        return a - b

    # 乘
    def mul(self, a, b):
        return a * b

    def __del__(self):
        print('This is __del__ method. The Calc class has been recycled')


x1 = 100
x2 = 200

c = Calc()
print(c.mul(c.add(x1, x2), c.sub(x2, x1)))
